package com.teamwork.module03.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.teamwork.common.entity.common.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    //根据id查询用户
    @Select("select * from tb_user where id=#{id}")
    User getById(Long id);


}
